﻿using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DianShangHouTai.Models
{
    public class RoleModuleService : BaseService<RoleModule>
    {
        public static List<int> GetModuleIdList(int roleId)
        {
            using (ShopContext db = new ShopContext())
            {
                return db.V_Module_RoleModule.Where(p => p.RMRoleId == roleId && p.MParentId != 0).Select(p => p.RMModuleId).ToList();
            }
        }
    }
}